package com.lnsf.bookstore.web.userCoupon.dao;

import com.lnsf.bookstore.common.dao.BaseDao;
import com.lnsf.bookstore.web.userCoupon.vo.ApiUserCoupon;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface ApiUserCouponMapper extends BaseDao<ApiUserCoupon>{

    /*
      订单对优惠券消费，查询
     */
    ApiUserCoupon queryByCouponNumber(@Param("couponNumber") String couponNumber);

    List<ApiUserCoupon> selectAll(Map<String, Object> params);

}